﻿using System.Diagnostics.CodeAnalysis;
using System.Windows.Interop;
using System.Windows.Media;
using GurLoader.GlobalHotkey;
using GurLoader.Service.HotKeyManager;
using GurLoader.View;

namespace GurLoader
{
    [ExcludeFromCodeCoverage]
    public class DefaultHwndSourceFactory : IHwndSourceFactory
    {
        public IHwndSource GetHwndSource(IWindow hotkeyWindow)
        {
            return new DefaultHwndSourceWrapper((HwndSource) HwndSource.FromVisual((Visual) hotkeyWindow));
        }
    }
}